package dev.ece.suit.hexmap.terrain.type;

import java.util.Iterator;

import dev.ece.core.light.Material;
import dev.ece.suit.hexmap.HexMapCell;
import dev.ece.suit.hexmap.terrain.TerrainFactory;
import dev.ece.util.lib.Vector3f;

@Deprecated
public class DefaultHillTerrainType extends DefaultTerrainType {

	public DefaultHillTerrainType(int textureIndex) {
		super(textureIndex);
	}
	
	public DefaultHillTerrainType(Material material, int textureIndex) {
		super(material, textureIndex);
	}

	@Override
	public void update(TerrainFactory terrainFactory, HexMapCell cell) {
		float height = 1.1f;
		Iterator<Vector3f> it = cell.getVertice().iterator();
		while(it.hasNext()) {
			it.next().setY(height);
		}
	}

}
